package org.geek4j.service;

import org.geek4j.domain.Person;
import org.geek4j.service.base.BaseTest;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class PersonWST extends BaseTest {

	@Autowired
	private PersonService personService;

	/**
	 * @author Geek4J
	 * @description call sayHello
	 */
	@Test
	public void sayHello() {
		String msg = personService.sayHello("Geek4J");
		log.error("The response msg is : {}", msg);
	}

	/**
	 * @author Geek4J
	 * @description call retrievePerson
	 */
	@Test
	public void retrievePerson() {
		Person person = personService.retrievePerson();
		log.error("The response person name is : {}, age is : {}", person.getName(), person.getAge());
	}
}
